<?php

require_once 'classes/work.class.php';
require_once 'classes/ask.class.php';
require_once 'classes/category.class.php';
$cat = new Category($_POST['category']);
$work = new Work($_SESSION['uid'], $_POST['category'], $_POST['description'], $_POST['date']);

foreach ($_POST['persons'] as $foruid) {
    $ask = new Ask(NULL, $foruid, $work->getId());
}
?>

<div class="alert-message success">
  <p><strong>Congratulations!</strong> Your request(s) for feedback(s) has been sent.</p>
</div>
<p><?php echo $_POST['date'];?></p>
<blockquote>
  <p><?php echo $_POST['description'] ?></p>
  <small><?php echo $cat->getName(); ?></small>
</blockquote>
<a href="index.php">Back to homepage.</a>